/**
 * Copyright (C) 2011 KingCore Science & Technology CO,.LTD. All rights reserved.
 * XNS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2011 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package com.kingcore.director.book.ui;

import java.util.Observable;
import java.util.ResourceBundle;

import javax.swing.border.BevelBorder;

import wzw.util.I18nUtil;
import wzw.util.I18nUtils;

import com.kingcore.director.DirectorConstants;
import com.kingcore.director.base.ui.DirectorPanel;
import com.kingcore.director.base.ui.DirectorToolBar;
import com.kingcore.director.core.ui.ButtonAction;
import com.kingcore.director.main.MainFrame;

/**
 * <p>java class file describe</p>
 * @author Zeven on 2011-4-8
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public class NoteBookToolBar extends DirectorToolBar {
	
//	public ReminderToolBar(String name) {
//		super(name);
//		// TODO Auto-generated constructor stub
//	}

	public NoteBookToolBar(DirectorPanel mainPanel) {
		super("Tool Bar");

		this.addButtons(mainPanel);

		//添加一个新的
		tb_creatNote = this.add(new ButtonAction(MainFrame.pic_new));
		tb_creatNote.setBorder(new BevelBorder(BevelBorder.RAISED));
		tb_creatNote.setToolTipText("创建新的新文章");
		tb_creatNote.addActionListener( mainPanel );
		tb_creatNote.setSize(15, 15);

		initBarStatus();
	}

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * <p>java method describe</p>
	 * @author Zeven on 2011-4-8
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(Observable o, Object arg) {
		ResourceBundle bundle = I18nUtils.getBundle(DirectorConstants.I18n_Language_Name);

		tb_fileExplorer.setToolTipText( I18nUtil.getBundleString(bundle, DirectorToolBar.class, "toolBar_fileExplorer.TipText"));  
		tb_fileCopy.setToolTipText( I18nUtil.getBundleString(bundle, DirectorToolBar.class, "toolBar_fileCopy.TipText")); 
		tb_favoriteFile.setToolTipText( I18nUtil.getBundleString(bundle, DirectorToolBar.class, "toolBar_favoriteFile.TipText"));
		tb_documentLibrary.setToolTipText( I18nUtil.getBundleString(bundle, DirectorToolBar.class, "toolBar_documentLibrary.TipText")); 
		tb_programLibrary.setToolTipText( I18nUtil.getBundleString(bundle, DirectorToolBar.class, "toolBar_programLibrary.TipText"));

	}


}
